package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 系统数据字典对象 sys_dictionary
 * 
 * @author ruoyi
 * @date 2025-02-24
 */
public class SysDictionary extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private String id;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 编码 */
    @Excel(name = "编码")
    private String code;

    /** 父id */
    @Excel(name = "父id")
    private String parentId;

    /** 父编码 */
    @Excel(name = "父编码")
    private String parentCode;

    /** 要显示列表的节点 值为1 默认0不显示列表 */
    @Excel(name = "要显示列表的节点 值为1 默认0不显示列表")
    private Long isparent;

    /** 排序号（暂时） */
    @Excel(name = "排序号", readConverterExp = "暂=时")
    private Long isdelete;

    /** 层级 */
    @Excel(name = "层级")
    private Long levelCode;

    /** 是否叶子 节点 0否1是 */
    @Excel(name = "是否叶子 节点 0否1是")
    private Integer isLeaf;

    /** 数值 */
    @Excel(name = "数值")
    private String numValue;

    /** 1系统，2业务 */
    @Excel(name = "1系统，2业务")
    private String menuType;

    /** 0：系统 1：主体 */
    @Excel(name = "0：系统 1：主体")
    private Integer authorityType;

    /** 机构ID/主体ID */
    @Excel(name = "机构ID/主体ID")
    private String objectId;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setParentId(String parentId) 
    {
        this.parentId = parentId;
    }

    public String getParentId() 
    {
        return parentId;
    }
    public void setParentCode(String parentCode) 
    {
        this.parentCode = parentCode;
    }

    public String getParentCode() 
    {
        return parentCode;
    }
    public void setIsparent(Long isparent) 
    {
        this.isparent = isparent;
    }

    public Long getIsparent() 
    {
        return isparent;
    }
    public void setIsdelete(Long isdelete) 
    {
        this.isdelete = isdelete;
    }

    public Long getIsdelete() 
    {
        return isdelete;
    }
    public void setLevelCode(Long levelCode) 
    {
        this.levelCode = levelCode;
    }

    public Long getLevelCode() 
    {
        return levelCode;
    }
    public void setIsLeaf(Integer isLeaf) 
    {
        this.isLeaf = isLeaf;
    }

    public Integer getIsLeaf() 
    {
        return isLeaf;
    }
    public void setNumValue(String numValue) 
    {
        this.numValue = numValue;
    }

    public String getNumValue() 
    {
        return numValue;
    }
    public void setMenuType(String menuType) 
    {
        this.menuType = menuType;
    }

    public String getMenuType() 
    {
        return menuType;
    }
    public void setAuthorityType(Integer authorityType) 
    {
        this.authorityType = authorityType;
    }

    public Integer getAuthorityType() 
    {
        return authorityType;
    }
    public void setObjectId(String objectId) 
    {
        this.objectId = objectId;
    }

    public String getObjectId() 
    {
        return objectId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("code", getCode())
            .append("parentId", getParentId())
            .append("parentCode", getParentCode())
            .append("isparent", getIsparent())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("isdelete", getIsdelete())
            .append("remark", getRemark())
            .append("levelCode", getLevelCode())
            .append("isLeaf", getIsLeaf())
            .append("numValue", getNumValue())
            .append("menuType", getMenuType())
            .append("authorityType", getAuthorityType())
            .append("objectId", getObjectId())
            .toString();
    }
}
